package com.system.service;
import com.system.entity.Takecourse;
import com.system.entity.Teachcourse;
import com.system.entity.Entergrade;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.util.List;

@CrossOrigin
@Service
public interface teachCourseService {
    public List<Teachcourse> findByTeacherId(Long tea_id);
    public Teachcourse findByCourseId(Integer id);
    public List<Entergrade> findBytea_Id(Long tea_id);
    public List<Entergrade> findBySemester(Long tea_id, String semester);
    public List<Entergrade> findByCourseType(Long tea_id, String courseType);
    public List<Entergrade> findByCourseID(Long tea_id, Integer course_id);
    public List<Entergrade> findByCourseName(Long tea_id, String course_name);
    public List<Entergrade> findBySemName(Long tea_id, String semester, String course_name);
    public List<Entergrade> findBySemType(Long tea_id, String semester, String courseType);
    public List<Entergrade> findBySemId(Long tea_id, String semester, Integer course_id);
    List<Takecourse> findByEveryStudentGrade(Integer course_id);
//    List<Takecourse> findByEveryStudentGrade( Long tea_id, String semester, Integer course_id);
    List<Takecourse> findByEveryStudent(Integer course_id);
    List<Takecourse> findByupdateStudentGrade(Integer course_id);
}
